package org.slsale.service.datadictionary;

import java.util.List;

import javax.annotation.Resource;

import org.slsale.dao.datadictionary.DataDictionaryMapper;
import org.slsale.pojo.user.DataDictionary;
import org.springframework.stereotype.Service;
@Service
public class DataDictionaryServiceImpl implements DataDictionaryService {
	
	@Resource
	private DataDictionaryMapper dataDictionarymapper;
	
	@Override
	public List<DataDictionary> getDataDictionary(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.getDataDictionary(dataDictionary);
	}

	@Override
	public List<DataDictionary> getDataDictionariesCategory() throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.getDataDictionariesCategory();
	}

	@Override
	public int addDataDictionary(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.addDataDictionary(dataDictionary);
	}

	@Override
	public int typeCodeOrValueIdIsExit(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.typeCodeOrValueIdIsExit(dataDictionary);
	}

	@Override
	public int maxValueId(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.maxValueId(dataDictionary);
	}

	@Override
	public int modifyDataDictionary(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.modifyDataDictionary(dataDictionary);
	}

	@Override
	public int deleteDataDictionary(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.deleteDataDictionary(dataDictionary);
	}

	@Override
	public List<DataDictionary> getDataDictionariesNotIn(DataDictionary dataDictionary) throws Exception {
		// TODO Auto-generated method stub
		return dataDictionarymapper.getDataDictionariesNotIn(dataDictionary);
	}

}
